package com.situ.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.situ.utils.AuditEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 购物车模型
 */

@Getter
@Setter
@TableName("cart")
public class Cart extends AuditEntity {
    @TableId(type = IdType.AUTO)
    private Integer id; //购物车id

    private Integer userId; //用户id

    private Integer productId; //商品id

    private Integer quantity; //商品数量

    private Integer isSelected; //是否选中 (1：是  0：否)


    @TableField(exist = false)
    private  Product product;//商品
     @TableField(exist = false)
    private ImageUrl imageUrl;//图片地址
}
